package com.hangim.pce.model;

import com.hangim.pce.common.domain.IdEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 药品用量规则表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_drug_usage_rule")
public class SysDrugUsageRule extends IdEntity {

    /**
     * 药品ID
     */
    @TableField("drug_id")
    private Long drugId;
    /**
     * 药品名称
     */
    @TableField("drug_name")
    private String drugName;
    /**
     * 人群类型
     */
    private Integer people;
    /**
     * 每次用量
     */
    private String dose;
    /**
     * 用量单位 1 片/粒 2 ml毫升，3 l升，4 瓶/支，5 g克 ...
     */
    @TableField("dose_unit")
    private Integer doseUnit;
    /**
     * 频次
     */
    private String freq;
    /**
     * 频次单位 1 分 2 时，3 天/日，4 周，5 月 ...
     */
    @TableField("freq_unit")
    private Integer freqUnit;

    /**
     * 用法
     */
    private String usage;

    /**
     * 用法队列
     */
    @TableField(exist = false)
    private List<Integer> usages;

    private Integer type;
    /**
     * 规则描述
     */
    private String description;
    /**
     * 状态
     */
    private Boolean active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private Long updatedBy;

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public String getUsage() {
        return usage;
    }

    public void setUsage(String usage) {
        this.usage = usage;
    }

    public Integer getPeople() {
        return people;
    }

    public void setPeople(Integer people) {
        this.people = people;
    }

    public String getDose() {
        return dose;
    }

    public void setDose(String dose) {
        this.dose = dose;
    }

    public Integer getDoseUnit() {
        return doseUnit;
    }

    public void setDoseUnit(Integer doseUnit) {
        this.doseUnit = doseUnit;
    }

    public String getFreq() {
        return freq;
    }

    public void setFreq(String freq) {
        this.freq = freq;
    }

    public Integer getFreqUnit() {
        return freqUnit;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setFreqUnit(Integer freqUnit) {
        this.freqUnit = freqUnit;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    public List<Integer> getUsages() {
        return usages;
    }

    public void setUsages(List<Integer> usages) {
        this.usages = usages;
    }
}
